

#include "Public.h"


#if GATE_Program_necessary

u8 gate_open_timer;

void gate_ctr_time(void){

	if(gate_open_timer) gate_open_timer--;
	else IO_GATE_CTR = 0;
}

void gate_io_init(void){

	IO_GATE_CTR = 0;
}

void Gate_Ctr_Open(void){

	IO_GATE_CTR = 1;
	gate_open_timer = 100;	
}

#endif
